package com.mindskip.xzs.service;

import com.github.pagehelper.PageInfo;
import com.mindskip.xzs.domain.dto.student.message.MessagePageStudentDTO;
import com.mindskip.xzs.domain.entity.MessageUser;
import com.mindskip.xzs.domain.entity.User;
import com.mindskip.xzs.domain.vo.student.message.MessagePageStudentVO;

import java.util.List;

public interface MessageUserService extends BaseService<MessageUser> {

    List<MessageUser> getMessageUserByMessageIds(List<Integer> ids);

    PageInfo<MessagePageStudentVO> getMessageUserByPageAndReceiveUserId(MessagePageStudentDTO messagePageStudentDTO);

    // 消息标记已读
    void readMessage(Integer id);

    // 得到用户未读消息的数量
    Integer getUnreadCount(User currentUser);
}
